package com.dinzeer.foxextra;

import com.dinzeer.foxextra.regsiter.FEXItemTab;
import com.dinzeer.foxextra.regsiter.FEXSpecialEffectsRegistry;
import com.dinzeer.foxextra.regsiter.FEXcomboRegsitry;
import com.dinzeer.foxextra.regsiter.FEXslashArtRegsitry;
import com.mojang.logging.LogUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.MapColor;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
import net.minecraftforge.event.server.ServerStartingEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
import org.slf4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(Foxextra.MODID)
public class Foxextra {

    public static ResourceLocation prefix(String path) {

        return new ResourceLocation(MODID, path);
    }

    public static final String MODID = "foxextra";

    public Foxextra() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        MinecraftForge.EVENT_BUS.register(this);
        FEXcomboRegsitry.COMBO_STATES.register(modEventBus);
        FEXslashArtRegsitry.SLASH_ARTS.register(modEventBus);
        FEXSpecialEffectsRegistry.REGISTRY_KEY2.register(modEventBus);
        FEXItemTab.REGISTRY.register(modEventBus);
    }


}
